<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="addrcrBill()">新增</button>
                <button class="layui-btn" ng-click="edite()">编辑</button>
                <button class="layui-btn" ng-click="delect()">删除</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <button class="layui-btn" ng-click="moreClick()">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh" ng-click="refreshA()" refresh></i>
            </div>
        </div>
        <!--更多条件-->
        <!--<div class="otherForm wms-layer" style="display:none;height:70px;width:100%">-->
            <!--<table class="layui-table wms-bd-none-main">-->
                <!--<tr>-->
                    <!--<td>还车人</td>-->
                    <!--<td><input type="text" class="layui-input" ng-model="search.rcReturnName" /></td>-->
                    <!--<td>还车部门</td>-->
                    <!--<td><input type="text" class="layui-input" ng-model="search.rcReturnDepartment" /></td>-->
                    <!--<td>还车日期</td>-->
                    <!--<td>-->
                        <!--<input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.returnStartTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">-->
                    <!--</td>-->
                    <!--<td style="width: 80px">至</td>-->
                    <!--<td>-->
                        <!--<input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.returnEndTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">-->
                    <!--</td>-->
                <!--</tr>-->
                <!--<tr>-->
                    <!--<td colspan="8" >-->
                        <!--<div class="otherFormItem otherFormItemButton" style="text-align: right">-->
                            <!--<button class="layui-btn" ng-click="getList()">查询</button>-->
                            <!--<button class="layui-btn" ng-click="resetClick()">重置</button>-->
                        <!--</div>-->
                    <!--</td>-->
                <!--</tr>-->
            <!--</table>-->
        <!--</div>-->

        <div class="otherForm"style="display:none;height:75px;width:100%;margin-bottom: 18px;" >
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>还车人</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rcReturnName" />
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>还车部门</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rcReturnDepartment" />
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>还车日期</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.returnStartTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.returnEndTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton" style="text-align: right">
                        <button class="layui-btn" ng-click="getList()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>

        <!--主表-->
        <div class="layui-form">
            <table class="layui-table wms_rcr_table">
                <tbody>
                <tr>
                    <th>
                        <input type="checkbox" lay-skin="primary" lay-filter="allChoose">
                    </th>
                    <th>还车记录单号</th>
                    <th>还车人</th>
                    <th>还车部门</th>
                    <th>联系电话</th>
                    <th>关联车辆借用单</th>
                    <th>还车日期</th>
                </tr>
                <tr ng-repeat="item in mainList" repeat-finish rcid="{{item.rcId}}" ng-click="getDetail($event)">
                    <td rcid="{{item.rcId}}">
                        <input type="checkbox" lay-skin="primary" lay-filter="test"  />
                    </td>
                    <td tr-select ng-bind="item.rcReturnNo"></td>
                    <td tr-select ng-bind="item.rcReturnName"></td>
                    <td tr-select ng-bind="item.rcReturnDepartment"></td>
                    <td tr-select ng-bind="item.rcReturnTel"></td>
                    <td tr-select ng-bind="item.rcBorrowNo"></td>
                    <td tr-select ng-bind="item.rcReturnDate | timeformat | date:'yyyy-MM-dd'"></td>
                </tr>
                </tbody>
            </table>

            <div class="admin-table-page" style="text-align: center;">
                <div id="pages" class="page">
                </div>
            </div>

            <blockquote class="layui-elem-quote" style="margin-top: 5px">
                借用车辆明细
            </blockquote>

            <table class="layui-table wms-rcr-main">
                <tr>
                    <th>序号</th>
                    <th>车架号(VIN码)</th>
                    <th>物料编码</th>
                    <th>物料名称</th>
                    <th>颜色</th>
                    <th>车型</th>
                    <th>车系</th>
                </tr>
                <tr ng-repeat="(key,item) in rcDetail">
                    <td>{{key+1}}</td>
                    <td ng-bind="item.bdVin"></td>
                    <td ng-bind="item.bdMaterialCode"></td>
                    <td ng-bind="item.bdMaterialName"></td>
                    <td ng-bind="item.bdCarColorname"></td>
                    <td ng-bind="item.bdCarSpecname"></td>
                    <td ng-bind="item.bdCarSeries"></td>
                </tr>
            </table>
            <div class="admin-table-page" style="text-align: center;">
                <div id="pagesTwo" class="page">
                </div>
            </div>
        </div>
    </div>
</div>